//
//  PingLunTileView.m
//  Experss
//
//  Created by wmwMAC on 17/8/11.
//  Copyright © 2017年 嗯，大葱. All rights reserved.
//

#import "PingLunTileView.h"

#import "ButtonAndLabels.h"

@interface PingLunTileView ()<ButtonAndLabelsDelegate>

@end
@implementation PingLunTileView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createUI];
    }
    return self;
}

-(void)createUI{
    NSArray *titleNameArr = @[@"全部",@"好评",@"中评",@"差评"];
    NSArray *numberArr = @[@"3",@"11",@"22",@"9"];
    CGFloat pice_weidth = kScreenWidth/4;
    for (NSInteger j=0; j<4; j++) {
        
        
        ButtonAndLabels *buttonViews = [[ButtonAndLabels alloc] initWithFrame:CGRectMake(pice_weidth*j, 0, pice_weidth, 60)];
        buttonViews.delegate = self;
        buttonViews.tag = j+3000;
        buttonViews.FirstLabel.text = titleNameArr[j];
        buttonViews.SecondLable.text = numberArr[j];
        [self addSubview:buttonViews];
        
//        if (buttonViews.tag == btnSelectTag) {
//            buttonViews.SecondLable.textColor = BaseBlueColor;
//            buttonViews.FirstLabel.textColor = BaseBlueColor;
//        }else{
//            buttonViews.SecondLable.textColor = [UIColor blackColor];
//            buttonViews.FirstLabel.textColor = [UIColor blackColor];        }
        
    }
    
}

@end
